#include <iostream>
#include <string>
#include <vector>

using namespace std;

int main()
{
    int ia[] = {0, 2, 4, 6, 8};
    int *beg = begin(ia);
    int *last = end(ia);
    while(beg < last){
        cout << *beg;
        *beg = 0;
        cout << *beg << endl;
        beg++;
    }
return 0;
}